feat: automation with github action#102
Merged
Merged
Conversation
josix
approved these changes
Sep 6, 2021
josix
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Thank you @mattwang44
mattwang44
commented
Oct 21, 2021
| PYTHON := $(shell which python3) | ||
| MODE := autobuild-dev-html | ||
| BRANCH = $(shell git describe --contains --all HEAD) | ||
| BRANCH := $(or $(VERSION), $(shell git describe --contains --all HEAD)) |
Collaborator
Author
There was a problem hiding this comment.
Before this change, make commands would fail if run on branches other than 3.7, 3.8, 3.9 etc. It allows users to run Makefile commands on branches with customized name by inserting an argument named VERSION.
VERSION=3.9 make
Merged
beccalzh
pushed a commit
to beccalzh/python-docs-zh-tw
that referenced
this pull request
Sep 4, 2024
* Pulling latest source strings from CPython daily and make the change as a PR (only support branch 3.9). * Maintainer should resolve the fuzzy entries before merging it. * If the PR for this task is existed, changes will be forced-push to the existing branch (checkout peter-evans/create-pull-request@v3). * Launch build flow during a pull request is opened (supported base branch: 3.7, 3.8, & 3.9). * Deploy to github page if any change is pushed to main branch (current: 3.9).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR tend to automate several tasks with github action:
3.9).peter-evans/create-pull-request@v3).3.7,3.8, &3.9).3.9).Preview
These workflows are tested in my forked repo. One can check it out and learn how it works before merging this PR:
Caution
gh-pagesand folder as root)..nojekyllis required to be committed togh-pagesbranch after this PR is merged. It prevents github page from ignoring folders that start with underscores, which makes it failed to load css/js files (see this reference and this blog for details).